:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: #333;
  font-size: 16px;
  min-width: 360px;
}

body {
  margin: 0;
}

a {
  color: #924;
  text-decoration: none;
}

nav a {
  padding: 8px;
  border-radius: 8px;
}

a:hover {
  color: #c06;
  text-decoration: underline;
}

main {
  max-width: 40em;
  margin: auto;
  line-height: 1.6;
}

.header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  padding-right: 1em;
  padding-bottom: 1em;
  border-bottom: solid 1px #ddd;
}

@media (min-width: 600px) {
  .header {
    justify-content: space-between;
  }
}

.header > * {
  margin-left: 1em;
  margin-top: 1em;
}

.logo {
  font-size: 150%;
  font-weight: bold;
}

.nav ul {
  padding: 0;
  margin: 0;
}

.nav li {
  display: inline-block;
  list-style-type: none;
}

.nav li:not(:last-child) {
  margin-right: 1em;
}

.header a {
  text-decoration: none;
}

.activeLink {
  background-color: #ddd;
}

.main {
  padding: 0 1em 1em;
  min-height: calc(100vh - 16rem);
}

.footer {
  font-size: small;
  text-align: center;
  margin-top: 2rem;
  padding: 1em;
  border-top: solid 1px #eef;
}
